<div class="center">
  <a class="button preloader" href="<? echo redirect_str(PAGE_ADMIN_VIDEO); ?>">PŘIDAT VIDEO</a><br /><br />
</div>
  
<table class="centered small-table">
      <tr>
        <th>datum</th>
        <th>název</th>
        <th>akce</th>
      </tr>
      
      <?
      $query = getVidea();
      while($fetch = MySQL_Fetch_Array($query)){
        $id = $fetch["ID"];
        $title = $fetch["NAZEV"];
        $datum = $fetch["DATUM"];
        
        echo "<tr>";
          echo "<td>$datum</td>";
          echo "<td class='lefted'>$title</td>";
          echo "<td><a class='preloader' href='".redirect_str(PAGE_ADMIN_VIDEO).add_par("id_video=".$id)."'><img class='icon-btn' src='./img/icons/edit.png'></a>
                <a class='preloader' href='".redirect_str(PAGE_ADMIN_VIDEOS).action(ACTION_DELETE_VIDEO).add_par("id_video=".$id)."'><img class='icon-btn' src='./img/icons/delete.png'></a></td>";
        echo "</tr>";
      }
      ?>
</table>